<?php
/**
 * <https://y.st./>
 * Copyright © 2016 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'title' => 'Twelve days',
	'body' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2016/11/16.jpg" alt="The Park at Emerald Village" class="weblog-header-image" width="811" height="480" />
<p>
	<strong>Current countdown:</strong> 12 days to find a place to live
</p>
<h2 id="general">General news</h2>
<p>
	Paulk-collins reported on <a href="ircs://freenodeok2gncmy.onion:6697/%23Replicant">#Replicant</a> that Cypress just bought Broadcom, then released all the information from their Wi-Fi chips.
	GrimKriegor says that one of those chips is the one used in the GT-i9100.
	That means that it&apos;s now possible to build free and working Wi-Fi for my device! At least I think that that&apos;s what it means, I&apos;m no good with hardware.
	They also said that that same chip is used for Bluetooth! I might be able to ditch my carrier and use Wi-Fi, as well as stop breaking the cords on my wired headphones and get wireless ones.
	In any case, I&apos;m not sure if anyone will work on this at any time soon, but someone might get to it eventually.
</p>
<p>
	Apparently, PayPal decided to close my account on me on 2016-11-13, citing &quot;security reasons&quot;.
	I didn&apos;t notice the email from them notifying me of this fact until just now, but this was the day after I had tried to close the account myself, but they wouldn&apos;t let me.
	PayPal&apos;s system is incredibly messed up, but at least my account has been closed.
</p>
<p>
	My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
</p>
<h2 id="include.d">include.d</h2>
<p>
	I said that I wouldn&apos;t introduce this section for a while because <a href="https://git.vola7ileiax4ueow.onion/y.st./include.d/releases">include.d</a> is on hiatus, but it seems that I do have stuff to say about the project even though I don&apos;t have time to work on it at the moment.
</p>
<p>
	I learned about a $a[PHP] magic method that is, in my opinion, quite idiotic.
	Specifically, the <a href="https://secure.php.net./manual/en/language.oop5.magic.php#object.set-state"><code>__set_state()</code></a> method seems redundant.
	When the function <code>\\var_export()</code> is called with an object as its argument, it creates an <code>eval()</code>able string by converting the object into an array, creating an <code>eval()</code>able representation of that array, then wrapping it in a call to the static <code>__set_state()</code> method of that object&apos;s class, whether that class actually implements that method or not.
	What? Did the developers honestly not realize that they could simply convert the object to an <code>eval()</code>able string by internally running something like <code>\\serialize()</code> on the object, then wrapping the result in a call to <code>\\unserialize()</code>? That would give more consistent results and wouldn&apos;t require extra implementation on the part of the class builder.
	It&apos;s worth noting too that the <code>__set_state()</code> magic method isn&apos;t a magic method at all.
	It only gets called when code explicitly is built to call it.
	In any case, when I eventually get back to working on include.d, I&apos;m going to be adding a <code>__set_state()</code> method to most of my classes to cover this use case.
	It&apos;s worth noting that when the <code>\\var_export()</code> function creates an array string from an object, it does so very strangely.
	First of all, there is no differentiation between keys representing private properties, protected properties, public properties, and private properties of different classes.
	If a child class implements a private property with the same name as a private property used by the parent class, <strong>*both*</strong> properties are included in the array string and are given the same key name.
	When <code>eval()</code>ing the code, one value overwrites the other, so you lose some of the properties! Luckily for any class in which the parent&apos;s version of the property is more important, it seems that the child&apos;s version is set first, closer to the beginning of the string, and the parent&apos;s is set later, closer to the end of the string.
	This will be <strong>*exceedingly*</strong> useful for my classes that extend my <code>\\st\\y\\uri</code> class.
	To get <code>__set_state()</code> to function as expected by returning an instance of the class based on the array, <code>__set_state()</code> will need to have access to the five private <code>\\st\\y\\uri</code> class properties, even in child classes.
	It will need to use these properties to construct the string version of the $a[URI], then pass that string to the actual constructor of the class.
</p>
<h2 id="university">University life</h2>
<p>
	I started my day by completing my <a href="/en/coursework/BUS1101/Leadership_Entrepreneurship_and_Strategy.xhtml">essay</a> for the week.
	While my original plan for the day was to first finish my discussion assignment, the essay was more important.
	If I only had time to finish one of the two, I&apos;d have better made the essay that one.
	My essay now stretches all the way to page six, not counting the references section.
	Perfect! That should be detailed enough.
	If someone tries to measure the page count, I can&apos;t be sure that they&apos;ll be using the same font or font size that I used, but it should still at least surpass the required two-page page count.
	For this assignment, I was required to double space the essay, so I tried to use a <code>&lt;style/&gt;</code> tag with the <code>scoped=&quot;scoped&quot;</code> attribute within a <code>&lt;div/&gt;</code> tag, but the <a href="http://www.uopeople.edu/">University of the People</a> essay-submission form stripped out the <code>&lt;style/&gt;</code> tag.
	I ended up just using the <code>style</code> attribute on the <code>&lt;div/&gt;</code> tag that I wrapped my essay in, but that&apos;s much less flexible.
	For example, I wasn&apos;t able to style all contained tags that have a <code>title</code> attribute as I&apos;d originally planned to.
	Next, I wrote up my remaining discussion posts:
</p>
<blockquote>
<p>
	I agree, it&apos;s important to understand the capabilities and skills of your subordinates.
	That allows to to match the correct subordinate to the correct task, to best utilize your human resources.
	Likewise, hovering over your subordinates isn&apos;t a good idea.
	By allowing them to mostly work without interference, you avoid wasting your own time and energy, as well as avoid annoying your subordinates and making them think that you don&apos;t trust them.
</p>
<p>
	The success of the company depends a lot on the condition of the employees.
	If you care about the company, it can be very useful to care about the employees as well, making sure that they&apos;re happy and productive.
</p>
</blockquote>
<blockquote>
<p>
	Yeah, management is a skill.
	Some people come by it naturally, but when those that don&apos;t naturally have that skill don&apos;t take the time and make the effort to learn it, subordinates can be very unhappy.
	Leadership is a very important skill for a manager, and without it, getting people to want to go in the direction that you&apos;re taking them isn&apos;t going to happen.
</p>
</blockquote>
<blockquote>
<p>
	The roles of manager and leader are different roles, with different types of qualities, though it&apos;s possible to fill both shoes at once.
</p>
<p>
	Goal-setting, analysis, and strategy are all great skills for managers to have.
	Analysis helps you understand the current situation, goal-setting helps you figure out the situation that you want to be in, and strategy helps you make it from the current situation to the desired situation.
</p>
</blockquote>
<p>
	Until I got home from work, I wasn&apos;t able to see what the assigned reading for the week was, so I just assumed that it was the next chapter of our assigned textbook.
	I copied that to my mobile and read a couple pages of it on my break at work.
</p>
<h2 id="apartment">Apartment hunting</h2>
<p>
	On the way to work, I found an apartment complex that I guess always knew was there, but had never thought about being an apartment complex.
	I&apos;m unsure of the name of this complex, but I have a $a[URI] in which to find more information later.
	I also went into the office of a complex called The Park at Emerald Village.
	It&apos;s a strange name, and not one that&apos;s easy to use in a conversation, but they said that they&apos;d rent to me without any renting history and without me having to make three times the rent! The catch? Well, there&apos;s two.
	First, the price is \$650 $a[USD], plus the cost of utilities.
	Second, they don&apos;t have any vacancies.
	I can fill out an application to get on their waiting list though.
	I&apos;ve taken home the application and will fill that out tomorrow before work and drop it off as I head in.
</p>
<p>
	My boss wanted me to keep them updated on my moving situation, as I informed them before they hired me that I was planning to move out of town fairly soon and couldn&apos;t stay long.
	Today was the first time that I saw them since I found out htat I&apos;m apartment-hunting, so I let them know that I&apos;m looking for a place.
	If I find one, I can stay and keep that job.
	I also kind of secretly hoped that they would have some advice, but they didn&apos;t say anything of the sort.
	They did say that I can use them as a reference should I find a place that requires references though.
</p>
END
);
